From: Florian Müllner Date: Wed, 7 Feb 2024 14:32:30 +0000 (+0100) Subject: messageTray: Remove _createPolicy() hook X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~281^2~2^2~14 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=bb918fff3c9b5ad933a6a05813b93b80499bacef;p=gnome-shell.git messageTray: Remove _createPolicy() hook It is now unused (at least in gnome-shell itself). Part-of: --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index abdc0982a..163d3eab5 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -633,7 +633,7 @@ export const Source = GObject.registerClass({ this.notifications = []; if (!this._policy) - this._policy = this._createPolicy(); + this._policy = new NotificationGenericPolicy(); } get policy() { @@ -662,10 +662,6 @@ export const Source = GObject.registerClass({ this.notify('count'); } - _createPolicy() { - return new NotificationGenericPolicy(); - } - get narrowestPrivacyScope() { return this.notifications.every(n => n.privacyScope === PrivacyScope.SYSTEM) ? PrivacyScope.SYSTEM